import request from "@/utils/request";
const project = "/project";

// 查询项目列表
export function listProject(data) {
  return request({
    url: `${project}/listProject`,
    method: "post",
    data: data,
  });
}

// 新增项目内容
export function insertProject(data) {
  return request({
    url: `${project}/insertProject`,
    method: "post",
    data: data,
  });
}

// 根据项目编号进行查重
export function queryByNum(data) {
  return request({
    url: `${project}/queryByNum`,
    method: "post",
    data: data,
  });
}

// 修改项目内容
export function updateProject(data) {
  return request({
    url: `${project}/updateProject`,
    method: "post",
    data: data,
  });
}

// 删除项目内容
export function deleteProject(data) {
  return request({
    url: `${project}/deleteProject`,
    method: "post",
    data: data,
  });
}

// 导出项目
export function exportData(data) {
  return request({
    url: `${project}/exportData`,
    method: "post",
    data: data,
    responseType: "blob",
  });
}
